//
//  Student.m
//  Lesson -02
//
//  Created by dllo on 16/2/25.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "Student.h"

@implementation Student
-(void)setgrade:(float)grade{
    _grade = grade;
    
}
-(float)grade{
    return _grade;
}

-(void)setclassRoomName:(NSString *)classroomName{
    _classRoomName = classroomName;

}
-(NSString *)classroomName{
    return  _classRoomName;
}

-(void)sayHi{
    [super sayHi];
    //super 是编译器指令,指调用父类方法.
    //[super sayHi]是当前对象调用父类的方法,而不是父类对象调用sayHi方法.
    NSLog(@"grade:%f,classrommName:%@",_grade,_classRoomName);
}

-(instancetype)init{
    self = [super init];
    if (self) {
        _classRoomName = @"dls160101";
    }
 return self;
}




@end
